package game;

/**
 * Projectile for games, for instance a bullet fired by a player.
 * @author Twisty
 *
 */
public class Projectile extends MovableGameObject {
	// The player this projectile belongs to.
	private Player owner;

	/**
	 * Class constructor.
	 * @param x 	Start co-ordinate on X axis.
	 * @param y		Start co-ordinate on Y axis.
	 * @param direction	The direction the projectile will fire to.
	 * @param owner		The owner of this projectile.
	 */
	public Projectile(int x, int y, double direction, Player owner) {
		super(x, y);
		this.setRotation(direction);
		this.owner = owner;
	}
	
	/**
	 * Get the owner.
	 * @return The owner.
	 */
	public Player getOwner(){
		return this.owner;
	}
}
